package com.mybook.app.controller;

import com.mybook.app.core.BaseResponse;
import com.mybook.app.service.WalletService;
import com.mybook.app.utils.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zjutsw on 2017/11/10.
 */
@RestController
@RequestMapping("wallet")
public class WalletController {
    @Autowired
    private WalletService walletService;
    @PostMapping("info")
    public BaseResponse walletInfo() {
        Logger.debug(this, "获取我的钱包");
        return new BaseResponse(walletService.walletInfo());
    }


}
